import { getToken } from '@/api/storage'

export default {
  namespaced: true,
  state: {
    token: getToken()
  },
  mutations: {
    saveToken (state, payload) {
      state.token = payload
    }
  }
}
